package com.student.system.wapper;

import com.student.system.entity.StudentScore;
import com.student.system.entity.Studentregister;

import javax.servlet.http.HttpServletRequest;

public class StudentScoreWrapper {
    public static StudentScore ScoreWrapper(HttpServletRequest req){
        StudentScore studentScore =new StudentScore();
        try{
            studentScore.setId(Integer.valueOf(req.getParameter("id")));
        }catch (Exception e){}
        studentScore.setName(req.getParameter("name"));
        studentScore.setSubject(req.getParameter("subject"));
//        MD5Utils.md5plus
        studentScore.setScore((req.getParameter("score")));
        return studentScore;
    }
}
